/*
 *NOTE:Auto generated service implement
*/
package com.surfilter.modules.impuser.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import com.surfilter.modules.impuser.model.HtImportUserModel;
import com.surfilter.modules.impuser.model.HtComUserModel;
import com.surfilter.modules.impuser.dao.HtImportUserDao;
import com.surfilter.modules.impuser.dao.HtComUserDao;
import com.surfilter.modules.impuser.service.ImpUserMgrService;
import com.surfilter.platform.base.model.ActionPermission;
import com.surfilter.platform.base.model.PageInfo;
import com.surfilter.platform.base.model.ParameterClassType;
import com.surfilter.platform.base.model.ParameterInfo;
import com.surfilter.platform.base.model.ParameterMapper;
import com.surfilter.platform.base.model.PermissionMethodType;
import com.surfilter.platform.base.service.ServiceBase;

@Service(value = "impUserMgrService")
public class ImpUserMgrServiceImpl extends ServiceBase implements ImpUserMgrService {

	@Resource
	private HtImportUserDao htImportUserDao;
	@Resource
	private HtComUserDao htComUserDao;

	
	@ActionPermission(actionName = "addHtImportUser",remark = "")
	public java.lang.Integer addHtImportUser(HtImportUserModel htImportUserModel, HttpServletRequest request) {
		return htImportUserDao.addHtImportUser(htImportUserModel);
	}
	
	@ActionPermission(actionName = "chgHtImportUser",remark = "")
	public void chgHtImportUser(HtImportUserModel htImportUserModel, HttpServletRequest request) {
		htImportUserDao.chgHtImportUser(htImportUserModel);
	}
	
	@ActionPermission(actionName = "delHtImportUser",remark = "")
	public void delHtImportUser(HtImportUserModel htImportUserModel, HttpServletRequest request) {
		htImportUserDao.delHtImportUser(htImportUserModel);
	}
	
	@ActionPermission(actionName = "getHtImportUsers",remark = "")
	public List<HtImportUserModel> getHtImportUsers(HtImportUserModel htImportUserModel, HttpServletRequest request) {
		return htImportUserDao.getHtImportUsers(htImportUserModel, PageInfo.getPageInfo(request));
	}
	
	@ActionPermission(actionName = "delHtImportUsers",remark = "")
	@ParameterMapper({ @ParameterInfo(mapName = "ids", componentType = Integer.class, index = 0, mapType = ParameterClassType.ARRAY) })
	public boolean delHtImportUsers(List<java.lang.Integer> ids){
		htImportUserDao.delHtImportUsers(ids);
		return true;
	}
	
	@ActionPermission(actionName = "getHtImportUsersCount",remark = "")
	public int getHtImportUsersCount(HtImportUserModel htImportUserModel) {
		return htImportUserDao.getHtImportUsersCount(htImportUserModel);
	}
	
	
	@ActionPermission(actionName = "addHtComUser",remark = "")
	public java.lang.Integer addHtComUser(HtComUserModel htComUserModel, HttpServletRequest request) {
		return htComUserDao.addHtComUser(htComUserModel);
	}
	
	@ActionPermission(actionName = "chgHtComUser",remark = "")
	public void chgHtComUser(HtComUserModel htComUserModel, HttpServletRequest request) {
		htComUserDao.chgHtComUser(htComUserModel);
	}
	
	@ActionPermission(actionName = "delHtComUser",remark = "")
	public void delHtComUser(HtComUserModel htComUserModel, HttpServletRequest request) {
		htComUserDao.delHtComUser(htComUserModel);
	}
	
	@ActionPermission(actionName = "getHtComUsers",remark = "")
	public List<HtComUserModel> getHtComUsers(HtComUserModel htComUserModel, HttpServletRequest request) {
		return htComUserDao.getHtComUsers(htComUserModel, PageInfo.getPageInfo(request));
	}
	
	@ActionPermission(actionName = "delHtComUsers",remark = "")
	@ParameterMapper({ @ParameterInfo(mapName = "ids", componentType = Integer.class, index = 0, mapType = ParameterClassType.ARRAY) })
	public boolean delHtComUsers(List<java.lang.Integer> ids){
		htComUserDao.delHtComUsers(ids);
		return true;
	}
	
	@ActionPermission(actionName = "getHtComUsersCount",remark = "")
	public int getHtComUsersCount(HtComUserModel htComUserModel) {
		return htComUserDao.getHtComUsersCount(htComUserModel);
	}
	}
